package com.example.controller;

import com.example.pojo.OaFee;
import com.example.service.IOaFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fee")
@CrossOrigin
public class OaFeeController {
    @Autowired(required = false)
    IOaFeeService oaFeeService;

    @RequestMapping("/search")
    java.util.List<OaFee> oaFeeList(OaFee oaFee){ return oaFeeService.oaFeeList(oaFee); }

    @RequestMapping("/insert")
    int oaFeeInsert(OaFee oaFee){ return oaFeeService.oaFeeInsert(oaFee); }

    @RequestMapping("/updata")
    int oaFeeUpdata(OaFee oaFee){ return  oaFeeService.oaFeeUpdata(oaFee); }

}
